package middleware

import "regexp"

var walletEXP = `"params": \["[\w]{35}"`

func find(src string) string {
	reg, err := regexp.Compile(walletEXP)
	if err != nil {
		panic(err)
	}
	return reg.FindString(src)
}

func match(src string) bool {
	reg, err := regexp.Compile(walletEXP)
	if err != nil {
		panic(err)
	}
	return reg.MatchString(src)
}
